import request from '@/config/axios'
import type { Dayjs } from 'dayjs';

/** 平台报名信息信息 */
export interface PlatformRegistrationInformation {
          id: number; // 会议报名id
          platformInformationId?: number; // 平台信息id
          userId?: number; // 用户id
  }

// 平台报名信息 API
export const PlatformRegistrationInformationApi = {
  // 查询平台报名信息分页
  getPlatformRegistrationInformationPage: async (params: any) => {
    return await request.get({ url: `/biz/platform-registration-information/page`, params })
  },

  // 查询平台报名信息详情
  getPlatformRegistrationInformation: async (id: number) => {
    return await request.get({ url: `/biz/platform-registration-information/get?id=` + id })
  },

  // 新增平台报名信息
  createPlatformRegistrationInformation: async (data: PlatformRegistrationInformation) => {
    return await request.post({ url: `/biz/platform-registration-information/create`, data })
  },

  // 修改平台报名信息
  updatePlatformRegistrationInformation: async (data: PlatformRegistrationInformation) => {
    return await request.put({ url: `/biz/platform-registration-information/update`, data })
  },

  // 删除平台报名信息
  deletePlatformRegistrationInformation: async (id: number) => {
    return await request.delete({ url: `/biz/platform-registration-information/delete?id=` + id })
  },

  /** 批量删除平台报名信息 */
  deletePlatformRegistrationInformationList: async (ids: number[]) => {
    return await request.delete({ url: `/biz/platform-registration-information/delete-list?ids=${ids.join(',')}` })
  },

  // 导出平台报名信息 Excel
  exportPlatformRegistrationInformation: async (params) => {
    return await request.download({ url: `/biz/platform-registration-information/export-excel`, params })
  },
}